package com.kailing.bootbatch.piliang;

import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * <h3>springboot_batch_jdbc</h3>
 * <p>批量执行</p>
 * @EnableBatchProcessing是打开Batch。
 * 如果要实现多Job的情况，需要把EnableBatchProcessing注解的modular设置为true，
 * 让每个Job使用自己的ApplicationConext。
 * @author : hduong
 * @version : 1.0
 * @date : 2019-12-06 16:58
 **/
@SpringBootApplication
@EnableBatchProcessing(modular = true)
@EnableScheduling
public class PiLiangZhiXingApplication {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(PiLiangZhiXingApplication.class);
        application.run(args);
    }
}
